package main

import (
	"fmt"
	"io/fs"
	"os"
)

func main() {
	file, err := os.Open(os.Args[0])
	if err != nil {
		panic(err)
	}
	stat, err := file.Stat()
	if err != nil {
		panic(err)
	}
	fmt.Println("======", stat.Mode())
	fmt.Println(int64(fs.ModeDir))
	fmt.Println(int64(fs.ModeAppend))
	fmt.Println(int64(fs.ModeExclusive))
	fmt.Println(int64(fs.ModeTemporary))
	fmt.Println(int64(fs.ModeSymlink))
}
